#include <stdio.h>
#include <string.h>
int main() {
    int num;
    scanf("%d", &num);
    int len = 0, count = 0;
    int arr[10000];
    char array[10000];
    while (num != 0) {
        arr[len] = num % 10;
        num /= 10;
        if (num != 0) len++;
    }
    for (int i = 0; i <= len/2; i++) {
        if (arr[i] == arr[len - i]) {
            strcpy(array,"yes");
        } else {
            strcpy(array,"no");
        }
    }
    int t= strcmp(array,"yes");
    if(t==0){
       puts("yes");
    }else puts("no");
    return 0;
}
